<table>
  <?php foreach ($carti as $i => $carte): ?>
    <tr>
      <table>
      <tr>
      	<td><img src="<?php echo $carte->getPoza() ?>" width="70" height="100"></td>
      	<td>
      		<table>
      		<tr>
      			<td> 
      			<a href = "<?php echo url_for('carte/show?id_carte='.$carte->getIdCarte().'&titlu='.$carte->getTitlu()); ?>"><?php echo $carte->getTitlu(); ?></a></td>
      		</tr>
      		<tr>
      			<td><b><?php echo $carte->getPret(); echo " lei" ?></b></td>
      		</tr>
      		<tr>
      			<td><?php if($carte->getStoc()>0) echo "In stoc"; else echo "Stoc epuizat" ?></td>
      		</tr>
      		</table>
      	</td>
      </tr>
    
  <?php endforeach; ?>
</table>